<template>
    <div v-if="forumsDetails">
        {{forumsDetails.body}}
    </div>
</template>

<script>

export default {
    props: {
    id: {},
  },
  data() {
    return {
      forumsDetails:{},
    };
  },

  methods: {
    async fetchCars() {
      const res = await this.$http.get(`/forums/detail/${this.id}`);
      this.forumsDetails = res;
      //console.log(res.body);
      console.log("文章详细信息");
    },
    fetch() {
      //
      this.fetchCars();
    },
  },

  created() {
    this.id && this.fetchCars();
  },
    
}
</script>

<style scoped>

</style>
